<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$page.title} 我是买家</title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Sun, 6 Mar 2005 01:00:00 GMT" />
<meta name="keywords" content="{$page.tags}" />
<meta name="description" content="{$page.desc}" />
<script type="text/javascript" src="{&js}/jquery-1.4.2.min.js"></script>

<script type="text/javascript" src="{&js}/common.js"></script>
<script type="text/javascript" src="{&js}/validity.js"></script>
<script type="text/javascript" src="{&js}/jquery.colorbox-min.js"></script>
<link rel="shortcut icon" href="{&img}/favicon.ico"  type="image/x-icon" />
<link href="{&css}/wsmj.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
$(document).ready(function(){
	$(".linkcss").colorbox({width:"950px", height:"400px", iframe:true});
});

</script>


<if condition="ACTION_NAME eq 'goods'">
<script type="text/javascript" src="{&js}/areaArr2.js"></script>
<script type="text/javascript" src="{&js}/jquery.showArea.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#perNative").click(showArea);
});
</script>
</if>

<if condition="ACTION_NAME eq 'showtopic'">
<script type="text/javascript">
$(document).ready(function(){
	
});
</script>
</if>

<if condition="(ACTION_NAME eq 'showurl') OR (ACTION_NAME eq 'showgoods') OR (ACTION_NAME eq 'showbrand')">
<script type="text/javascript" src="{&js}/jquery.lightbox-0.5.min.js"></script>
<script type="text/javascript">
$(function() {
    $('#gallery a').lightBox();
});
function usaction(action,gid)
{
	var btnaction = "#" +action;
	
	$("#result").hide();
	var btnnow =parseInt($(btnaction).html());
	
	$.ajax({
		   type: "POST",
		   url: '__APP__/deal/relmodel',
		   data: "id="+gid+"&action="+action+"&module={*ACTION_NAME}",
		   success: 
		   function(msg){
			 var obj = eval( "(" + msg + ")" );
			 
			 $("#result").html(obj.data);
			 
				 $("#result").slideDown("slow",function(){
					 if(obj.info)
					 {
					 //复制下来的时候 IE 会保存原来的CSS 而FF CHROME也会复制CSS
					 $(btnaction+"list").append($("#userico").clone());
					 //操作成功完了+1
					 $(btnaction).html(btnnow + 1 );
					 }
				 });
			 
		   }
		});
	
}

</script>
</if>

<if condition="ACTION_NAME eq 'space'">
<script type="text/javascript">
function dofocus(gid)
{
	
	$("#focusid").hide();
	$.ajax({
		   type: "POST",
		   url: '__APP__/deal/relmodel',
		   data: "id="+gid+"&action=focus&module=showuser",
		   success: 
		   function(msg){
			 var obj = eval( "(" + msg + ")" );
			 
			 $("#focusid").html(obj.data);
			 
				 $("#focusid").slideDown("slow",function(){
					 if(obj.info)
					 {
						 $("#myfriendlist").append($("#userico").clone());
						 $("#btnfocus").hide();
					 }
				 });
			 
		   }
		});
	
}
</script>
</if>

</head>
<body>


<div id="wrapper">
<div id="content">
<div class="grid-16-8 clearfix">